package com.rectcircle.wechat.msg.vo;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.rectcircle.wechat.util.CDATAAdapter;

/**
 * 
 * 回复图文消息是对图文消息描述的封装<br>
 * 
 * @author RectCircle
 * @version 0.1<br>
 * 2016年7月18日-上午12:14:16<br>
 * Copyright (c) 2016 RectCircle-版权所有<br>
 *
 */
@XmlRootElement(name="item")
@XmlAccessorType(XmlAccessType.FIELD)
public class NewsItem {
	@XmlJavaTypeAdapter(CDATAAdapter.class)
	@XmlElement(name="Title")
	private String Title = null;

	@XmlJavaTypeAdapter(CDATAAdapter.class)
	@XmlElement(name="Description")
	private String Description = null;
	
	@XmlJavaTypeAdapter(CDATAAdapter.class)
	@XmlElement(name="PicUrl")
	private String PicUrl = null;
	
	@XmlJavaTypeAdapter(CDATAAdapter.class)
	@XmlElement(name="Url")
	private String Url = null;

	public NewsItem() {
	}

	public NewsItem(String title, String description, String picUrl, String url) {
		Title = title;
		Description = description;
		PicUrl = picUrl;
		Url = url;
	}

	public String getDescription() {
		return Description;
	}

	public String getPicUrl() {
		return PicUrl;
	}

	public String getTitle() {
		return Title;
	}

	public String getUrl() {
		return Url;
	}

	public void setDescription(String description) {
		Description = description;
	}

	public void setPicUrl(String picUrl) {
		PicUrl = picUrl;
	}

	public void setTitle(String title) {
		Title = title;
	}

	public void setUrl(String url) {
		Url = url;
	}

	@Override
	public String toString() {
		return "ImgTxtItem [Title=" + Title + ", Description=" + Description + ", PicUrl=" + PicUrl + ", Url=" + Url
				+ "]";
	}
	
}
